package com.xf.toy.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderBackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public OrderBackExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBackIdIsNull() {
            addCriterion("back_id is null");
            return (Criteria) this;
        }

        public Criteria andBackIdIsNotNull() {
            addCriterion("back_id is not null");
            return (Criteria) this;
        }

        public Criteria andBackIdEqualTo(Long value) {
            addCriterion("back_id =", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdNotEqualTo(Long value) {
            addCriterion("back_id <>", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdGreaterThan(Long value) {
            addCriterion("back_id >", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdGreaterThanOrEqualTo(Long value) {
            addCriterion("back_id >=", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdLessThan(Long value) {
            addCriterion("back_id <", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdLessThanOrEqualTo(Long value) {
            addCriterion("back_id <=", value, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdIn(List<Long> values) {
            addCriterion("back_id in", values, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdNotIn(List<Long> values) {
            addCriterion("back_id not in", values, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdBetween(Long value1, Long value2) {
            addCriterion("back_id between", value1, value2, "backId");
            return (Criteria) this;
        }

        public Criteria andBackIdNotBetween(Long value1, Long value2) {
            addCriterion("back_id not between", value1, value2, "backId");
            return (Criteria) this;
        }

        public Criteria andBackTimeIsNull() {
            addCriterion("back_time is null");
            return (Criteria) this;
        }

        public Criteria andBackTimeIsNotNull() {
            addCriterion("back_time is not null");
            return (Criteria) this;
        }

        public Criteria andBackTimeEqualTo(Date value) {
            addCriterion("back_time =", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeNotEqualTo(Date value) {
            addCriterion("back_time <>", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeGreaterThan(Date value) {
            addCriterion("back_time >", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("back_time >=", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeLessThan(Date value) {
            addCriterion("back_time <", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeLessThanOrEqualTo(Date value) {
            addCriterion("back_time <=", value, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeIn(List<Date> values) {
            addCriterion("back_time in", values, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeNotIn(List<Date> values) {
            addCriterion("back_time not in", values, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeBetween(Date value1, Date value2) {
            addCriterion("back_time between", value1, value2, "backTime");
            return (Criteria) this;
        }

        public Criteria andBackTimeNotBetween(Date value1, Date value2) {
            addCriterion("back_time not between", value1, value2, "backTime");
            return (Criteria) this;
        }

        public Criteria andToyCodeIsNull() {
            addCriterion("toy_code is null");
            return (Criteria) this;
        }

        public Criteria andToyCodeIsNotNull() {
            addCriterion("toy_code is not null");
            return (Criteria) this;
        }

        public Criteria andToyCodeEqualTo(String value) {
            addCriterion("toy_code =", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotEqualTo(String value) {
            addCriterion("toy_code <>", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeGreaterThan(String value) {
            addCriterion("toy_code >", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("toy_code >=", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLessThan(String value) {
            addCriterion("toy_code <", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLessThanOrEqualTo(String value) {
            addCriterion("toy_code <=", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLike(String value) {
            addCriterion("toy_code like", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotLike(String value) {
            addCriterion("toy_code not like", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeIn(List<String> values) {
            addCriterion("toy_code in", values, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotIn(List<String> values) {
            addCriterion("toy_code not in", values, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeBetween(String value1, String value2) {
            addCriterion("toy_code between", value1, value2, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotBetween(String value1, String value2) {
            addCriterion("toy_code not between", value1, value2, "toyCode");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andExpressIdIsNull() {
            addCriterion("express_id is null");
            return (Criteria) this;
        }

        public Criteria andExpressIdIsNotNull() {
            addCriterion("express_id is not null");
            return (Criteria) this;
        }

        public Criteria andExpressIdEqualTo(Long value) {
            addCriterion("express_id =", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdNotEqualTo(Long value) {
            addCriterion("express_id <>", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdGreaterThan(Long value) {
            addCriterion("express_id >", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdGreaterThanOrEqualTo(Long value) {
            addCriterion("express_id >=", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdLessThan(Long value) {
            addCriterion("express_id <", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdLessThanOrEqualTo(Long value) {
            addCriterion("express_id <=", value, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdIn(List<Long> values) {
            addCriterion("express_id in", values, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdNotIn(List<Long> values) {
            addCriterion("express_id not in", values, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdBetween(Long value1, Long value2) {
            addCriterion("express_id between", value1, value2, "expressId");
            return (Criteria) this;
        }

        public Criteria andExpressIdNotBetween(Long value1, Long value2) {
            addCriterion("express_id not between", value1, value2, "expressId");
            return (Criteria) this;
        }

        public Criteria andLastExIdIsNull() {
            addCriterion("last_ex_id is null");
            return (Criteria) this;
        }

        public Criteria andLastExIdIsNotNull() {
            addCriterion("last_ex_id is not null");
            return (Criteria) this;
        }

        public Criteria andLastExIdEqualTo(Long value) {
            addCriterion("last_ex_id =", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdNotEqualTo(Long value) {
            addCriterion("last_ex_id <>", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdGreaterThan(Long value) {
            addCriterion("last_ex_id >", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdGreaterThanOrEqualTo(Long value) {
            addCriterion("last_ex_id >=", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdLessThan(Long value) {
            addCriterion("last_ex_id <", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdLessThanOrEqualTo(Long value) {
            addCriterion("last_ex_id <=", value, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdIn(List<Long> values) {
            addCriterion("last_ex_id in", values, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdNotIn(List<Long> values) {
            addCriterion("last_ex_id not in", values, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdBetween(Long value1, Long value2) {
            addCriterion("last_ex_id between", value1, value2, "lastExId");
            return (Criteria) this;
        }

        public Criteria andLastExIdNotBetween(Long value1, Long value2) {
            addCriterion("last_ex_id not between", value1, value2, "lastExId");
            return (Criteria) this;
        }

        public Criteria andBricklostIsNull() {
            addCriterion("bricklost is null");
            return (Criteria) this;
        }

        public Criteria andBricklostIsNotNull() {
            addCriterion("bricklost is not null");
            return (Criteria) this;
        }

        public Criteria andBricklostEqualTo(String value) {
            addCriterion("bricklost =", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostNotEqualTo(String value) {
            addCriterion("bricklost <>", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostGreaterThan(String value) {
            addCriterion("bricklost >", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostGreaterThanOrEqualTo(String value) {
            addCriterion("bricklost >=", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostLessThan(String value) {
            addCriterion("bricklost <", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostLessThanOrEqualTo(String value) {
            addCriterion("bricklost <=", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostLike(String value) {
            addCriterion("bricklost like", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostNotLike(String value) {
            addCriterion("bricklost not like", value, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostIn(List<String> values) {
            addCriterion("bricklost in", values, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostNotIn(List<String> values) {
            addCriterion("bricklost not in", values, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostBetween(String value1, String value2) {
            addCriterion("bricklost between", value1, value2, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBricklostNotBetween(String value1, String value2) {
            addCriterion("bricklost not between", value1, value2, "bricklost");
            return (Criteria) this;
        }

        public Criteria andBackToToyIsNull() {
            addCriterion("back_to_toy is null");
            return (Criteria) this;
        }

        public Criteria andBackToToyIsNotNull() {
            addCriterion("back_to_toy is not null");
            return (Criteria) this;
        }

        public Criteria andBackToToyEqualTo(String value) {
            addCriterion("back_to_toy =", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyNotEqualTo(String value) {
            addCriterion("back_to_toy <>", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyGreaterThan(String value) {
            addCriterion("back_to_toy >", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyGreaterThanOrEqualTo(String value) {
            addCriterion("back_to_toy >=", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyLessThan(String value) {
            addCriterion("back_to_toy <", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyLessThanOrEqualTo(String value) {
            addCriterion("back_to_toy <=", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyLike(String value) {
            addCriterion("back_to_toy like", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyNotLike(String value) {
            addCriterion("back_to_toy not like", value, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyIn(List<String> values) {
            addCriterion("back_to_toy in", values, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyNotIn(List<String> values) {
            addCriterion("back_to_toy not in", values, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyBetween(String value1, String value2) {
            addCriterion("back_to_toy between", value1, value2, "backToToy");
            return (Criteria) this;
        }

        public Criteria andBackToToyNotBetween(String value1, String value2) {
            addCriterion("back_to_toy not between", value1, value2, "backToToy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}